<template>
	<iframe class="document_player" :src="pdfSrc" frameborder="0"></iframe>
</template>

<script>
export default {
	name: 'documentPlayer',
	props: {
		fileSrc: String,
		data: {
			type: Object,
			default () {
				return {};
			}
		}
	},
	computed: {
		pdfSrc() {
			return `/pdfjs/web/viewer.html?file=${this.fileSrc}`;
		}
	}
};
</script>

<style lang="scss" scoped>
.document_player {
	width: 100%;
	height: 100%;
}
</style>